package com.wyd.component.netty.message;

import com.alibaba.fastjson.JSON;
import com.wyd.component.netty.enums.DeviceMessageType;

import java.io.Serializable;
import java.util.Date;

/**
 * 为了兼容android侧，未使用lombok
 */
public class DeviceBaseMessage implements Serializable {

    private String seqId;
    private String cardId;
    private DeviceMessageType type;
    private Date createTime;



    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSeqId() {
        return seqId;
    }

    public void setSeqId(String seqId) {
        this.seqId = seqId;
    }
    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public DeviceMessageType getType() {
        return type;
    }

    public void setType(DeviceMessageType type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }


}
